package com.cskaoyan.shopping.config;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: RedissonConfig
 * @Description: TODO  Redission配置
 * @Author:zk
 * @Date: 2022/5/19 17:21
 * @Version: 1.0
 **/
@Configuration
public class RedissonConfig {

    @Bean
    public RedissonClient createRedission(){
        RedissonClient redissonClient = Redisson.create();
        return redissonClient;
    }
}
